/*
    created: 2020/3/30
    filename: main.cpp
    author: 李东霖
    purpose: 测试Factory模式的代码
*/
#include<iostream>
#include<stdlib.h>
#include"Factory.h"

using namespace std;

int main()
{
    //工厂父类指针得到工厂子对象
    Creator* creator = new ConcreateCreator();
    //由这个工厂父类指针来获取Product派生类对象
    creator->AnOperation();
    delete creator;
    system("pause");
    return 0;
}